package gui;

import java.util.Vector;
import javax.microedition.lcdui.Graphics;

public class ScreenForm extends AbstractScreen
{
    private Vector itemList = new Vector();
    
    public ScreenForm()
    {
        super();
    }
    
    public void add(AbstractItem item)
    {
//        itemList.addElement(new ItemWrapper(item));
        invalidate();
    }
    
    public void insert(AbstractItem item, int index)
    {
        itemList.insertElementAt(item, index);
        invalidate();
    }
    
    public void remove(AbstractItem item)
    {
        itemList.removeElement(item);
    }
    
    public void remove(int index)
    {
        itemList.removeElementAt(index);
    }


    public void drawContent(Graphics g, int width, int height)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
